﻿@{
    Layout = "~/Views/Shared/_Layout_Form.cshtml";
}
<link href="~/Scripts/vendor/umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
<script type="text/javascript" charset="utf-8" src="~/Scripts/vendor/umeditor/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="~/Scripts/vendor/umeditor/umeditor.min.js"></script>
<script type="text/javascript" src="~/Scripts/vendor/umeditor/lang/zh-cn/zh-cn.js"></script>
<!--style给定宽度可以影响编辑器的最终宽度-->
<script type="text/plain" id="myEditor" style="width:100%;height:100%;">

</script>
<script type="text/javascript">
    //实例化编辑器
    var um = UM.getEditor('myEditor');

    //设置内容
    function setContent(content) {
        um.setContent(content);
    }

    //获取内容
    function getContent() {
        return um.getContent();
    }
</script>